import {createRouter,createWebHashHistory} from 'vue-router'

import Home from '../views/home/index.vue'
import Home2 from '../views/home2/index.vue'
import Game from '../views/game/index.vue'
import Game2 from '../views/game2/index.vue'
import Scene from '../views/scene/index.vue'
const routes = [
    {
        path:'/',
        name:'home',
        component:Home,
        replace:true
    },
    {
        path:'/home2',
        name:'home2',
        component:Home2,
        replace:true
    },
    {
        path:'/game',
        name:'game',
        component:Game,
        replace:true
    },
    {
        path:'/game2',
        name:'game2',
        component:Game2,
        replace:true
    },
    {
        path:'/scene',
        name:'scene',
        component:Scene,
        replace:true
    }
]
const router = createRouter({
    history:createWebHashHistory(),
    routes
})
export default router